@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="wzQuestionnaireInfoForm">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div>
                <div class="col-sm-9">
                    <#input id="title" name="标题"/>
                    <#input id="describe" name="描述"/>
                    <#input id="reward" name="赏金"/>
                    <#input id="fileId" name="封面图片id"/>
                    <#select id="screenCity" name="发布地区">
                    <option value="320482">金坛市</option>
                </#select>
                    @if(type==1){
                        <#select id="type" name="类型" underline="true" >
                            <option value="3">调查问卷</option>
                            <option value="4">商家问卷</option>
                        </#select>
                    @}
                    @if(type!=1){
                        <#select id="type" name="类型" underline="true" >
                            <option value="">请选择</option>
                            <option value="4">商家问卷</option>
                            <option value="5">广告提问</option>
                        </#select>
                    @}
                </div>
                <div class="col-sm-9" style="margin-top:-180px;margin-left: 600px ">
                    <img id="previewPic" src="" width="130" height="180" style="margin:-8px auto;display:none"  />
                </div>
            </div>
            </div>
             <div id="table">
                <#table id="wzAddQuestionTable"/>
             </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="WzQuestionnaireInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="WzQuestionnaireInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/wz/wzQuestionnaire/wzQuestionnaire_info.js"></script>
<script src="${ctxPath}/static/modular/wz/wzQuestionnaire/AddQuestion.js"></script>
<script src="${ctxPath}/static/modular/wz/pfFile/pfFile_Preview.js"></script>
@}
